#include <iostream>


using namespace std;


int main()

{

    int arr1[] = {1,2,3,4,5};

    int arr2[5] = { 0 };


    for(int i = 0; i < 5; ++i)

        for(int t = 0; t < 5; ++t)

            if(arr1[t] > arr2[i])

            {

                int n = arr2[i];
                arr2[i] = arr1[t];

                arr1[t] = n;

            }

    for(auto temp: arr2)

        cout << temp << endl;

    return 0;

}
